﻿<ul class="unit-grid address card catalog-supplier-address">
@{
    var tmp = Model as IEnumerable<dynamic>;
    if(tmp.Any())
    {
        foreach(var i in Model)
        {
            <li class="unit address card catalog-supplier-address">
                <header>
                    @JDM.String(i.ContactName)
                </header>
                <section>
                    <span>@JDM.String(i.EntityName)</span>
                    <span>@String.Format("{0}, {1}", JDM.String(i.Address1), JDM.String(i.Address2))</span>
                    <span>@JDM.String(i.City)</span>
                    <span>@JDM.String(i.Region.Name)</span>
                    <span>@JDM.String(i.Country.Name)</span>
                    <span>@JDM.String(i.PostalCode)</span>
                </section>
                <section>
                    <span>T: @JDM.String(i.PhoneNumber)</span>
                    <span>F: @JDM.String(i.FaxNumber)</span>
                    <span>W: @JDM.String(i.Website)</span>
                    <span>@@: @JDM.String(i.Email)</span>
                </section>
            </li>
        }
    }
    else
    {
        <li class="empty"><span>@T(Res.In("Common").Of("Expr").Name("NoData"))</span></li>
    }
}
</ul>